﻿/*
 * Created by SharpDevelop.
 * User: 1987wing
 * Date: 2016/9/7
 * Time: 0:04
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace BuriedPointsForYMT
{
	/// <summary>
	/// Description of BuriedPointsTabPage.
	/// </summary>
	public partial class BuriedPointsTabPage : TabPage
	{
		public BuriedPointsTabPage()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		public void TextDisplay(byte[] str)
        {
            /*if (null != str && str.Length > 0)
            	this.richTextBox.Text = this.DecodeJSString(this.UrlDecode(System.Text.Encoding.UTF8.GetString(str)));
            else
                this.richTextBox.Text = "";*/
        }
		
		private void Switch_checkboxCheckedChanged(object sender, EventArgs e)
		{
			if (this.switch_checkbox.Checked) {
				this.PageType_textbox.Enabled = true;
				this.model_name_textbox.Enabled = true;
				//this.sub_model_name_textbox.Enabled = true;
				//this.action_type_textbox.Enabled = true;
			} else {
				this.PageType_textbox.Enabled = false;
				this.model_name_textbox.Enabled = false;
				this.sub_model_name_textbox.Enabled = false;
				this.action_type_textbox.Enabled = false;
			}
		}
		
		public TextBox get_PageType_textbox()
		{
			return this.PageType_textbox;
		}
		
		public TextBox get_model_name_textbox()
		{
			return this.model_name_textbox;
		}
		
		public TextBox get_sub_model_name_textbox()
		{
			return this.sub_model_name_textbox;
		}
		
		public TextBox get_action_type_textbox_textbox()
		{
			return this.action_type_textbox;
		}
		
		public CheckBox get_switch_checkbox()
		{
			return this.switch_checkbox;
		}
	}
}
